<div class="box-content-project">
    <h2 class="category-name"><?php if (!empty($name_category)) {
    echo $name_category;
} ?></h2>

    <?php
    if (!empty($info)) {
        for ($i = 0; $i < count($info); $i++) {
            ?>
            <div class="content-content-project">
                <?php
                switch ($category) {
                    case 'tin-tuc':
                    case 'noi-ngoai-that':
                        $url = $category . '/chi-tiet/' . $info[$i]['id'];
                        break;
                    default :
                        $url = $category . '/' . $info[$i]['type'] . '/chi-tiet/' . $info[$i]['id'];
                        break;
                }
                ?>
                <h4 class="title"><a href="<?php echo site_url($url); ?>"><?php echo $info[$i]['title']; ?></a></h4>
                <img src="<?php echo templateUrl() . $info[$i]['url_image']; ?>" alt="Image" class="img-news"/>
                <span style="color: #ccc; font-weight: bold;">(<?php echo date("d.m.Y", strtotime($info[$i]['created_date'])); ?>)</span> <?php echo $info[$i]['sumary']; ?>
            </div><!-- End content -->    
            <?php
        }
    }
    ?>

    <div class="panigation"><?php echo $this->pagination->create_links(); ?></div>
</div><!-- End box-content-project -->
